package com.component.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.component.domain.base.DataBase;
import lombok.Data;

/**
 * 
 * @TableName m_document
 */
@TableName(value ="m_document")
@Data
public class MDocument extends DataBase implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    private String filename;

    /**
     * 
     */
    private String filetye;

    /**
     * 
     */
    private String fileid;

    /**
     * 
     */
    private String userid;

    /**
     * 
     */
    private String note;


    @TableField(exist = false)
    private String downloadUrl;

    public String getDownloadUrl() {
        return "/filebase64/getfile?id="+this.getFileid();
    }


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}